package com.mobile.collect.present;

import com.mobile.collect.activitys.AddDeviceUnitActivity;

public class AddDeviceUnitPresent extends BasePresent<AddDeviceUnitActivity> {
    public String getIndex(long labelIndex) {
        String expendStr;
        if (labelIndex < 10) {
            expendStr = "000" + labelIndex;
        } else if (labelIndex >= 10 && labelIndex < 100) {
            expendStr = "00" + labelIndex;
        } else if (labelIndex >= 100 && labelIndex < 1000) {
            expendStr = "0" + labelIndex;
        } else {
            expendStr = "" + labelIndex;
        }
        return expendStr;
    }


}
